home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / Technical Documentation / develop / develop Issue 14 / develop Issue 14 code / Virtual Sphere 1.0.1.sea / Virtual Sphere 1.0.1 / Virtual Sphere Sample Code 1.1 / Offscreen.h < prev    next >
MacBinary  |  1993-03-25  |  2.3 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Mar 25 13:00:31 1993, modified Thu Mar 25 13:00:31 1993, creator 'MPS ', type ASCII, 1590 bytes "Offscreen.h" , at 0x6b6 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4f 66 66 73 63 72 | 65 65 6e 2e 68 00 00 00 |..Offscr|een.h...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 06 36 00 | 00 01 ac a7 d7 a3 bf a7 |......6.|........|
|00000060| d7 a3 bf 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 55 e7 00 00 |........|....U...|
|00000080| 2f 2a a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |/*......|........|
|00000090| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000000a0| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000000b0| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000000c0| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000000d0| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000000e0| a5 a5 a5 0d 2f 2a 20 4f | 66 66 73 63 72 65 65 6e |..../* O|ffscreen|
|000000f0| 2e 68 0d 2f 2a 0d 2f 2a | 20 59 65 74 20 61 6e 6f |.h./*./*| Yet ano|
|00000100| 74 68 65 72 20 6f 66 66 | 73 63 72 65 65 6e 20 64 |ther off|screen d|
|00000110| 72 61 77 69 6e 67 20 6d | 6f 64 75 6c 65 20 74 68 |rawing m|odule th|
|00000120| 61 74 20 75 73 65 73 20 | 47 57 6f 72 6c 64 20 74 |at uses |GWorld t|
|00000130| 6f 20 65 6c 69 6d 69 6e | 61 74 65 20 64 72 61 77 |o elimin|ate draw|
|00000140| 69 6e 67 20 66 6c 69 63 | 6b 65 72 2e 0d 2f 2a 0d |ing flic|ker../*.|
|00000150| 2f 2a 20 42 61 73 69 63 | 20 63 61 6c 6c 69 6e 67 |/* Basic| calling|
|00000160| 20 73 65 71 75 65 6e 63 | 65 20 69 73 20 74 68 65 | sequenc|e is the|
|00000170| 20 66 6f 6c 6c 6f 77 69 | 6e 67 3a 0d 2f 2a 09 09 | followi|ng:./*..|
|00000180| 49 6e 69 74 4f 66 66 73 | 63 72 65 65 6e 20 28 2e |InitOffs|creen (.|
|00000190| 2e 2e 29 3b 0d 2f 2a 09 | 09 77 69 6e 64 6f 77 20 |..);./*.|.window |
|000001a0| 3d 20 47 65 74 4e 65 77 | 57 69 6e 64 6f 77 20 28 |= GetNew|Window (|
|000001b0| 2e 2e 2e 29 3b 0d 2f 2a | 09 09 43 68 65 63 6b 4f |...);./*|..CheckO|
|000001c0| 66 66 73 63 72 65 65 6e | 46 6f 72 57 69 6e 64 6f |ffscreen|ForWindo|
|000001d0| 77 20 28 26 67 57 6f 72 | 6c 64 2c 20 77 69 6e 64 |w (&gWor|ld, wind|
|000001e0| 6f 77 2c 20 2e 2e 2e 29 | 3b 0d 2f 2a 09 09 77 68 |ow, ...)|;./*..wh|
|000001f0| 69 6c 65 20 28 31 29 20 | 7b 0d 2f 2a 09 09 09 43 |ile (1) |{./*...C|
|00000200| 68 65 63 6b 4f 66 66 73 | 63 72 65 65 6e 46 6f 72 |heckOffs|creenFor|
|00000210| 57 69 6e 64 6f 77 20 28 | 26 67 57 6f 72 6c 64 2c |Window (|&gWorld,|
|00000220| 20 77 69 6e 64 6f 77 2c | 20 2e 2e 2e 29 3b 0d 2f | window,| ...);./|
|00000230| 2a 09 09 09 42 65 67 69 | 6e 44 72 61 77 69 6e 67 |*...Begi|nDrawing|
|00000240| 4f 66 66 73 63 72 65 65 | 6e 20 28 26 67 57 6f 72 |Offscree|n (&gWor|
|00000250| 6c 64 2c 20 77 69 6e 64 | 6f 77 29 3b 0d 2f 2a 09 |ld, wind|ow);./*.|
|00000260| 09 09 2e 2e 2e 20 44 72 | 61 77 20 53 6f 6d 65 74 |..... Dr|aw Somet|
|00000270| 68 69 6e 67 20 2e 2e 2e | 0d 2f 2a 09 09 09 45 6e |hing ...|./*...En|
|00000280| 64 44 72 61 77 69 6e 67 | 4f 66 66 73 63 72 65 65 |dDrawing|Offscree|
|00000290| 6e 20 28 26 67 57 6f 72 | 6c 64 2c 20 77 69 6e 64 |n (&gWor|ld, wind|
|000002a0| 6f 77 29 3b 0d 2f 2a 09 | 09 7d 0d 2f 2a 09 09 46 |ow);./*.|.}./*..F|
|000002b0| 72 65 65 4f 66 66 73 63 | 72 65 65 6e 20 28 26 67 |reeOffsc|reen (&g|
|000002c0| 57 6f 72 6c 64 29 3b 0d | 2f 2a 0d 2f 2a 20 41 75 |World);.|/*./* Au|
|000002d0| 74 68 6f 72 3a 20 4d 69 | 63 68 61 65 6c 20 43 68 |thor: Mi|chael Ch|
|000002e0| 65 6e 2c 20 48 75 6d 61 | 6e 20 49 6e 74 65 72 66 |en, Huma|n Interf|
|000002f0| 61 63 65 20 47 72 6f 75 | 70 20 2f 20 41 54 47 0d |ace Grou|p / ATG.|
|00000300| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 a9 20 31 |/* Copyr|ight . 1|
|00000310| 39 39 31 2d 31 39 39 33 | 20 41 70 70 6c 65 20 43 |991-1993| Apple C|
|00000320| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 20 20 41 |omputer,| Inc. A|
|00000330| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00000340| 65 64 2e 0d 2f 2a 0d 2f | 2a 20 50 61 72 74 20 6f |ed../*./|* Part o|
|00000350| 66 20 56 69 72 74 75 61 | 6c 20 53 70 68 65 72 65 |f Virtua|l Sphere|
|00000360| 20 53 61 6d 70 6c 65 20 | 43 6f 64 65 20 52 65 6c | Sample |Code Rel|
|00000370| 65 61 73 65 20 76 31 2e | 31 0d 2f 2a a5 a5 a5 a5 |ease v1.|1./*....|
|00000380| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|00000390| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000003a0| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000003b0| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000003c0| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|000003d0| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 2a 2f 0d |........|.....*/.|
|000003e0| 0d 23 69 66 6e 64 65 66 | 09 5f 5f 4f 46 46 53 43 |.#ifndef|.__OFFSC|
|000003f0| 52 45 45 4e 5f 5f 0d 23 | 64 65 66 69 6e 65 20 5f |REEN__.#|define _|
|00000400| 5f 4f 46 46 53 43 52 45 | 45 4e 5f 5f 0d 0d 23 69 |_OFFSCRE|EN__..#i|
|00000410| 66 6e 64 65 66 20 5f 5f | 47 4c 4f 42 41 4c 53 5f |fndef __|GLOBALS_|
|00000420| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 22 47 6c 6f 62 |_.#inclu|de "Glob|
|00000430| 61 6c 73 2e 68 22 0d 23 | 65 6e 64 69 66 0d 0d 23 |als.h".#|endif..#|
|00000440| 69 66 6e 64 65 66 20 5f | 5f 51 44 4f 46 46 53 43 |ifndef _|_QDOFFSC|
|00000450| 52 45 45 4e 5f 5f 0d 23 | 69 6e 63 6c 75 64 65 20 |REEN__.#|include |
|00000460| 3c 51 44 4f 66 66 73 63 | 72 65 65 6e 2e 68 3e 0d |<QDOffsc|reen.h>.|
|00000470| 23 65 6e 64 69 66 0d 0d | 2f 2a 20 4d 75 73 74 20 |#endif..|/* Must |
|00000480| 62 65 20 63 61 6c 6c 65 | 64 20 62 65 66 6f 72 65 |be calle|d before|
|00000490| 20 61 6e 79 20 6f 74 68 | 65 72 20 72 6f 75 74 69 | any oth|er routi|
|000004a0| 6e 65 73 20 69 6e 20 74 | 68 69 73 20 6d 6f 64 75 |nes in t|his modu|
|000004b0| 6c 65 2e 20 20 54 68 65 | 20 6f 74 68 65 72 0d 20 |le. The| other. |
|000004c0| 2a 20 72 6f 75 74 69 6e | 65 73 20 73 68 6f 75 6c |* routin|es shoul|
|000004d0| 64 20 6e 6f 74 20 62 65 | 20 63 61 6c 6c 65 64 20 |d not be| called |
|000004e0| 69 66 20 47 57 6f 72 6c | 64 20 69 73 20 6e 6f 74 |if GWorl|d is not|
|000004f0| 20 61 76 61 69 6c 61 62 | 6c 65 20 2a 2f 0d 70 61 | availab|le */.pa|
|00000500| 73 63 61 6c 20 4f 53 45 | 72 72 09 49 6e 69 74 69 |scal OSE|rr.Initi|
|00000510| 61 6c 69 7a 65 4f 66 66 | 73 63 72 65 65 6e 20 28 |alizeOff|screen (|
|00000520| 42 6f 6f 6c 65 61 6e 20 | 2a 67 57 6f 72 6c 64 41 |Boolean |*gWorldA|
|00000530| 76 61 69 6c 61 62 6c 65 | 29 3b 0d 0d 70 61 73 63 |vailable|);..pasc|
|00000540| 61 6c 20 76 6f 69 64 09 | 09 46 72 65 65 4f 66 66 |al void.|.FreeOff|
|00000550| 73 63 72 65 65 6e 20 28 | 47 57 6f 72 6c 64 50 74 |screen (|GWorldPt|
|00000560| 72 20 6f 66 66 73 63 72 | 65 65 6e 47 57 6f 72 6c |r offscr|eenGWorl|
|00000570| 64 29 3b 0d 0d 70 61 73 | 63 61 6c 20 51 44 45 72 |d);..pas|cal QDEr|
|00000580| 72 09 43 68 65 63 6b 4f | 66 66 73 63 72 65 65 6e |r.CheckO|ffscreen|
|00000590| 46 6f 72 57 69 6e 64 6f | 77 20 28 47 57 6f 72 6c |ForWindo|w (GWorl|
|000005a0| 64 50 74 72 20 2a 6f 66 | 66 73 63 72 65 65 6e 47 |dPtr *of|fscreenG|
|000005b0| 57 6f 72 6c 64 2c 0d 09 | 09 09 09 09 09 09 20 20 |World,..|...... |
|000005c0| 09 09 09 20 73 68 6f 72 | 74 09 20 20 20 70 69 78 |... shor|t. pix|
|000005d0| 65 6c 44 65 70 74 68 2c | 0d 09 09 09 09 09 09 09 |elDepth,|........|
|000005e0| 20 20 09 09 09 20 57 69 | 6e 64 6f 77 50 74 72 20 | ... Wi|ndowPtr |
|000005f0| 77 69 6e 64 6f 77 29 3b | 0d 0d 70 61 73 63 61 6c |window);|..pascal|
|00000600| 20 76 6f 69 64 09 09 42 | 65 67 69 6e 44 72 61 77 | void..B|eginDraw|
|00000610| 69 6e 67 4f 66 66 73 63 | 72 65 65 6e 20 28 47 57 |ingOffsc|reen (GW|
|00000620| 6f 72 6c 64 50 74 72 20 | 6f 66 66 73 63 72 65 65 |orldPtr |offscree|
|00000630| 6e 47 57 6f 72 6c 64 2c | 20 57 69 6e 64 6f 77 50 |nGWorld,| WindowP|
|00000640| 74 72 20 77 69 6e 64 6f | 77 29 3b 0d 70 61 73 63 |tr windo|w);.pasc|
|00000650| 61 6c 20 76 6f 69 64 09 | 09 45 6e 64 44 72 61 77 |al void.|.EndDraw|
|00000660| 69 6e 67 4f 66 66 73 63 | 72 65 65 6e 20 20 20 28 |ingOffsc|reen (|
|00000670| 47 57 6f 72 6c 64 50 74 | 72 20 6f 66 66 73 63 72 |GWorldPt|r offscr|
|00000680| 65 65 6e 47 57 6f 72 6c | 64 2c 20 57 69 6e 64 6f |eenGWorl|d, Windo|
|00000690| 77 50 74 72 20 77 69 6e | 64 6f 77 29 3b 0d 0d 0d |wPtr win|dow);...|
|000006a0| 0d 23 65 6e 64 69 66 20 | 5f 5f 4f 46 46 53 43 52 |.#endif |__OFFSCR|
|000006b0| 45 45 4e 5f 5f 0d 00 00 | 00 00 00 00 00 00 00 00 |EEN__...|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000710| 00 00 1a 0b 0f 41 70 70 | 6c 65 4c 69 6e 6b 20 36 |.....App|leLink 6|
|00000720| 2e 30 2e 31 02 00 02 00 | 41 50 50 4c 47 45 4f 4c |.0.1....|APPLGEOL|
|00000730| 0b 4f 66 66 73 63 72 65 | 65 6e 2e 68 02 00 00 00 |.Offscre|en.h....|
|00000740| 54 45 58 54 4d 50 53 20 | 01 00 02 70 00 00 00 00 |TEXTMPS |...p....|
|00000750| 00 00 54 45 58 54 4d 50 | 53 20 01 00 02 70 00 00 |..TEXTMP|S ...p..|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 a6 06 0f fe 00 00 | 06 36 00 00 01 ac 00 00 |........|.6......|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 17 00 00 00 1a 0b |........|........|
|00000790| 11 55 53 41 4d 6f 64 65 | 6d 20 76 36 2e 30 20 43 |.USAMode|m v6.0 C|
|000007a0| 43 4c 02 00 00 00 50 45 | 54 45 47 45 4f 4c 01 00 |CL....PE|TEGEOL..|
|000007b0| 00 00 00 00 00 00 00 00 | 1a 0e 00 00 00 00 31 fb |........|......1.|
|000007c0| 00 00 32 00 00 00 00 00 | 01 c2 00 00 0a 00 a3 68 |..2.....|.......h|
|000007d0| 3e df a3 70 66 45 ff ff | ff ff 00 00 00 00 00 00 |>..pfE..|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 f0 00 00 05 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | f0 05 00 01 00 00 00 00 |........|........|
|00000800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 a5 a5 a5 |...H..Mo|naco....|
|00000810| a5 a5 a5 a5 a5 a5 a5 a5 | a5 a5 a5 a5 a5 a5 a5 a5 |........|........|
|00000820| a5 a5 a5 a5 a5 a5 00 06 | 00 04 00 4f 02 43 02 15 |........|...O.C..|
|00000830| 04 53 00 4f 02 43 02 15 | 04 53 a7 d5 5c be 00 00 |.S.O.C..|.S..\...|
|00000840| 02 4b 00 00 02 fa 00 00 | 00 00 01 00 00 00 00 1e |.K......|........|
|00000850| 00 4f 02 43 02 15 04 53 | 00 4f 02 43 02 15 04 53 |.O.C...S|.O.C...S|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 cf |.....n..|.n...>..|
|00000880| 97 1c 0f 6e 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |...n....|.>..MPSR|
|00000890| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 03 f0 ff ff 00 00 00 4c | 00 d1 8f 20 00 00 00 00 |.......L|... ....|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+